package com.kpijavatraining.module2.menu;


import java.io.IOException;

import com.kpijavatraining.module.io.ConsolePrinter;
import com.kpijavatraining.module.io.ConsoleReader;

public class AdminMenu {

	private ConsolePrinter consolePrinter;
	private ConsoleReader consoleReader;
	
	public AdminMenu(){
		consolePrinter = new ConsolePrinter();
		consoleReader = new ConsoleReader();
	}
	
	public void runMenu() throws IOException{
		loop:while(true){
			consolePrinter.println("1 - exit:");
			switch(consoleReader.readLn()){
			case "1" : break loop;
			}
		}
	}
}
